package ar.uba.dc.tl.mylanga.inputhandler;

import java.io.InputStreamReader;
import java.io.PushbackReader;
import java.io.UnsupportedEncodingException;

public class ConsoleInputHandler extends InputHandler {

	public ConsoleInputHandler(Input input) {
		super(input);
	}

	@Override
	public void checkArguments() {
		// Nothing to do.
	}

	@Override
	public PushbackReader getReader() {
		try {
			return new PushbackReader(new InputStreamReader(System.in, "UTF8"), InputHandler.PUSH_BACK_SIZE);
		} catch (UnsupportedEncodingException e) {
			throw new RuntimeException("error creating reader", e);
		}
	}
}
